package com.hdoit.pisces.web.home.controllers;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.tennetcn.common.logical.superbase.service.IRoleEmployeeService;
import com.tennetcn.common.logical.superbase.service.IRoleService;
import com.tennetcn.component.web.BaseController;
import com.tennetcn.web.cbase.AuthPassport;

/** 
 * @author      chenghuan
 * @email       79763939@qq.com
 * @createtime  2016年5月5日 上午11:40:25
 * @comment 
 */
@Controller
@RequestMapping(value = "/")
@AuthPassport
public class IndexController extends BaseController{
	
	@Override
	public String getRoutePath() {
		return "home/";
	}
	

	

	
	//全局请求变量
	private final String indexViewName="index";
	//private final String mainnewViewName="mainnew";
	//private final String checkRoleMarkViewName = "checkRoleMark";
	
	@RequestMapping(value = indexViewName, method = { RequestMethod.GET,RequestMethod.POST })
	public String index(Model model){
		
		
		return getRoutePath()+indexViewName;
	}
	
//	@RequestMapping(value = mainnewViewName, method = { RequestMethod.GET,RequestMethod.POST })
//	public String mainnew(Model model){
//		
//		
//		return getRoutePath()+mainnewViewName;
//	}
	
//	@RequestMapping(value = checkRoleMarkViewName, method = { RequestMethod.GET,RequestMethod.POST })
//	public String checkRoleMark(Model model,String employeeId){
//		
//		return indexViewName;
//	}
}

